<template>
  <div class="profile">
    <div class="introduction">
      <div class="bg"></div>
      <div class="msg-box">
        <div class="avatar"></div>
        <span class="id-sp">Dr.{{doctorInfo.name}}</span>
        <span class="hint-sp">{{doctorInfo.id}}</span>
        <span class="email-sp">{{doctorInfo.email}}</span>
        <span class="hint-sp2">E-mail</span>
      </div>
      <div class="msg-box2">
        <span class="more iconfont icon-more more-i"></span>
      </div>
    </div>
    <div style="width: 100%;height: 680px;">
      <div class="left-cont">
        <div class="data">
          <ul>
            <li>
          <span>
            <span class="li-hint-top">852</span>
            <span class="li-hint">关注</span>
          </span>
            </li>
            <li>
          <span>
            <span class="li-hint-top">13k</span>
            <span class="li-hint">粉丝</span>
          </span>
            </li>
            <li>
          <span>
            <span class="li-hint-top">234</span>
            <span class="li-hint">私信</span>
          </span>
            </li>
          </ul>
          <div class="btn-box">
            <span class="btn" style="width: 30%">粉丝</span>
            <span class="btn" style="width: 50%">信箱</span>
          </div>
        </div>
        <div class="infos">
          <div class="block">
            <el-timeline>
              <el-timeline-item style="width: 80%;" placement="bottom"
                  v-for="(activity, index) in activities"
                  :key="index"
                  :icon="activity.icon"
                  :type="activity.type"
                  :color="activity.color"
                  :size="activity.size"
                  :timestamp="activity.timestamp">
                {{activity.content}}
              </el-timeline-item>
            </el-timeline>
          </div>
        </div>
      </div>
      <div class="right-cont">
        <div class="col-md-12 main-cont">
          <div class="nav-cont">
            <el-tabs v-model="activeName">
              <el-tab-pane label="个人信息" name="first">
                <span style="display: block;height: 40px;font-size:15px;width: 100%;color: #1362FC;line-height: 30px;">个人账户</span>
                <div style="width: 50%;height: 80px;display: inline-block">
                  <span style="color: #969BA0;font-size: 14px;display: block">邮件</span>
                  <input class="input-box" placeholder="e-mail" v-model="selfInfoForm.email"/>
                </div>
                <div style="width: 50%;height: 80px;display: inline-block">
                  <span style="color: #969BA0;font-size: 14px;display: block">账号</span>
                  <input class="input-box" placeholder="username" disabled v-model="selfInfoForm.username"/>
                </div>
                <div style="width: 100%;height: 80px;margin-top: 10px;display: inline-block">
                  <span style="color: #969BA0;font-size: 14px;display: block">地址</span>
                  <input class="input-box" style="width: 95%;" placeholder="address1" v-model="selfInfoForm.address"/>
                </div>
                <div style="width: 100%;height: 80px;margin-top: 10px;display: inline-block">
                  <span style="color: #969BA0;font-size: 14px;display: block">联系电话</span>
                  <input class="input-box" style="width: 95%;" placeholder="phone" v-model="selfInfoForm.phone"/>
                </div>
                <div style="width: 50%;height: 80px;display: inline-block;margin-top: 10px;">
                  <span style="color: #969BA0;font-size: 14px;display: block">省</span>
                  <input class="input-box" placeholder="province" v-model="selfInfoForm.province"/>
                </div>
                <div style="width: 30%;height: 80px;display: inline-block;">
                  <span style="color: #969BA0;font-size: 14px;display: block">市</span>
                  <input class="input-box" placeholder="city" v-model="selfInfoForm.city"/>
                </div>
                <div style="width: 20%;height: 80px;display: inline-block;">
                  <span style="color: #969BA0;font-size: 14px;display: block">邮编</span>
                  <input class="input-box" placeholder="zip" v-model="selfInfoForm.zip"/>
                </div>
                <div style="width: 100%;height: 50px;line-height: 50px;">
                  <el-checkbox v-model="checked" name="a" style="color: #969BA0;">确定更改</el-checkbox>
                  <span class="set">设置</span>
                </div>
              </el-tab-pane>
              <el-tab-pane label="认证配置" name="second">认证配置</el-tab-pane>
              <el-tab-pane label="更多设置" name="third">更多设置</el-tab-pane>
            </el-tabs>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Profile",
  data() {
    return {
      doctorInfo: {},
      selfInfoForm: {},
      checked: false,
      activeName: 'first',
      activities: [{
        content: '完成资深专家认定',
        timestamp: '2021-04-16 19:15',
        size: 'large',
        type: 'primary',
      }, {
        content: '完成主任专家认定',
        timestamp: '2020-03-12 16:30',
        color: '#0bbd87',
        size: 'large'
      }, {
        content: '完成初级医师认定',
        timestamp: '2019-10-20 14:50',
        size: 'large',
        type: 'primary',
        color: '#af81f5'
      }, {
        content: '完成实名认证',
        timestamp: '2018-05-30 17:20',
        size: 'large',
        type: 'primary'
      }, {
        content: '注册',
        timestamp: '2018-04-12 20:46',
        size: 'large',
        type: 'primary',
        color: '#1362FC'
      }]
    }
  },
  mounted() {
    this.doctorInfo = this.$store.getters.getDoctorInfo;
    this.selfInfoForm = this.doctorInfo;
  },
  methods: {

  }
}
</script>

<style scoped>
* {
  padding: 0;
  margin: 0;
}
.profile {
  float: left;
  color: #333333;
  /*background-color: lightgoldenrodyellow;*/
  width: 100%;
  height: 100%;
  text-align: left;
  overflow: hidden;
}
.introduction {
  float: right;
  width: 99.2%;
  height: 324px;
  background-color: white;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 0 10px rgb(82 63 105 / 8%);
}
.bg {
  position: relative;
  display: block;
  width: 97%;
  height: 71%;
  border-radius: 20px;
  background-image: url("../assets/profile_bg.png");
  background-size: cover;
  /*margin-top: 20px;*/
  margin: 10px auto;
  margin-bottom: 0;
}
.avatar {
  width: 90px;
  height: 90px;
  border-radius: 45px;
  /*background-color: lavenderblush;*/
  position: absolute;
  background-image: url("../assets/me.png");
  background-size: cover;
  box-shadow: 0 0 10px rgba(82, 63, 105, 0.16);
}
.hint-sp, .hint-sp2 {
  overflow: auto;
  display: inline-block;
  width: 120px;
  height: 24px;
  line-height: 24px;
  /*background-color: rgba(140, 152, 190, 0.34);*/
  color: #828690;
  position: absolute;
  margin-left: 25%;
  margin-top: 13.2%;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 1px;
}
.msg-box, .msg-box2 {
  position: relative;
  width: 460px;
  height: 120px;
  margin-top: -2.6%;
  margin-left: 4%;
  /*background-color: rgba(238, 238, 252, 0.58);*/
}
.id-sp, .email-sp {
  display: inline-block;
  width: 120px;
  height: 24px;
  line-height: 24px;
  /*background-color: rgba(140, 152, 190, 0.34);*/
  position: absolute;
  margin-left: 25%;
  margin-top: 8.6%;
  font-size: 16px;
  color: #1362FC;
  letter-spacing: .5px;
  font-weight: 600;
  font-family: sans-serif;
  overflow: hidden;
}
.hint-sp2 {
  margin-left: 50%;
}
.email-sp {
  width: 200px;
  margin-left: 50%;
  color: #464A53;
}
.msg-box2 {
  margin-left: 93%;
  margin-top: -10%;
  width: 40px;
}
.more {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin: 60% auto;
  background-color: #E7EFFF;
  border-radius: 50%;
  border: 1px solid #D2E1FF;
  text-align: center;
  transition: .3s;
  color: #1362FC;
  font-size: 26px;
}
.more:hover {
  color: white;
  background-color: #1362FC;
}
.data {
  position: relative;
  display: inline-block;
  width: 94%;
  height: 180px;
  background-color: white;
  margin-top: 30px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(82, 63, 105, 0.16);
  overflow: hidden;
  margin-bottom: 0;
}
ul, li {
  list-style: none;
  padding: 0;
  margin: 0;
}
.data>ul {
  display: block;
  width: 88%;
  height: 38%;
  /*background-color: rgba(230, 230, 250, 0.52);*/
  margin: 30px auto;
  margin-bottom: 0;
  line-height: 100%;
  text-align: center;
}
.btn {
  display: inline-block;
  height: 100%;
  width: 40%;
  font-size: 14px;
  background-color: #1362FC;
  border-radius: 16px;
  margin-left: 4px;
  margin-right: 4px;
  color: white;
  font-weight: 400;
  line-height: 50px;
}
.btn:hover {
  background-color: #034BD9;
}
.set {
  display: block;
  width: 80px;
  height: 50px;
  border-radius: 16px;
  margin-top: 10px;
  background-color: #1362FC;
  text-align: center;
  color: white;
  font-weight: 300;
  letter-spacing: 1px;
  transition: .3s;
  font-size: 14px;
  font-family: "Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif";
}
.set:hover {
  background-color: #034BD9;
}
.btn-box {
  /*background-color: rgba(250,230,238,0.49);*/
  width: 80%;
  height: 28%;
  margin: 0 auto;
  line-height: 100%;
  text-align: center;
}
ul>li {
  display: inline-block;
  width: 20%;
  height: 100%;
  /*background-color: rgba(192, 109, 137, 0.62);*/
  margin-left: 6%;
  margin-right: 6%;
}
.li-hint, .li-hint-top {
  width: 100%;
  height: 20px;
  /*background-color: rgba(250, 250, 210, 0.5);*/
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-family: poppins;
  color: #969BA0;
}
.li-hint-top {
  font-size: 22px;
  color: black;
  font-weight: 600;
}
.main-cont {
  overflow-y: hidden;
  /*background-color: rgba(244, 255, 240, 0.6);*/
  width: 98%;
  height: 93%;
  margin-top: 30px;
  margin-left: 2%;
  border-radius: 20px;
  background-color: white;
  box-shadow: 0 0 10px rgba(82, 63, 105, 0.16);
}
.left-cont {
  float: left;
  width: 33%;
  height: 100%;
  /*background-color: rgba(255, 240, 245, 0.53);*/
  padding-left: 10px;
}
.right-cont {
  float: right;
  width: 67%;
  height: 100%;
  overflow-y: hidden;
}
.nav-cont {
  width: 90%;
  height: 90%;
  /*background-color: rgba(230, 230, 250, 0.51);*/
  margin: 10px auto;
  line-height: 20px;
}
::v-deep .el-tabs__content {
  overflow: visible;
}
::v-deep .el-tabs__item {
  color: #828690;
  letter-spacing: 1px;
  font-family: "Microsoft YaHei UI";
  font-size: 14px;
  font-weight: 500;
}
::v-deep .el-tabs__item.is-active {
  color: #1362FC;
}
::v-deep .el-icon-arrow-left {
  color: #828690;
}
::v-deep .el-icon-arrow-right {
  color: #828690;
}
::v-deep .el-tabs__nav-wrap::after {
  height: 0;
}
::v-deep .el-tabs__active-bar {
  background-color: #1362FC;
}
input {
  background:none;
  outline:none;
  border:none;
}
.input-box {
  width: 90%;
  display: block;
  /*height: 40px;*/
  height: 60%;
  margin-left: 8px;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid #F2F2F2;
  padding: 10px;
  color: #969BA0;
  font-weight: 400;
  transition: border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out;
}
.input-box:focus {
  border-color: #1362FC;
}
input::-webkit-input-placeholder{
  color: #6E6E6E;
  font-size: 13px;
}
input::-moz-placeholder{   /* Mozilla Firefox 19+ */
  color: #6E6E6E;
  font-size: 13px;
}
input:-moz-placeholder{    /* Mozilla Firefox 4 to 18 */
  color: #6E6E6E;
  font-size: 13px;
}
input:-ms-input-placeholder{  /* Internet Explorer 10-11 */
  color: #6E6E6E;
  font-size: 13px;
}
/deep/.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner{
  background-color: #1362FC;
  border-color: #1362FC;
}
/deep/.el-checkbox__input.is-checked + .el-checkbox__label {
  color: #1362FC;
}
/deep/.el-checkbox.is-bordered.is-checked{
  border-color: #1362FC;
}
.infos {
  width: 94%;
  height: 62%;
  overflow: hidden;
  background-color: white;
  margin-top: -46px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(82, 63, 105, 0.16);
  line-height: 20px;
}
.block {
  width: 90%;
  height: 86%;
  /*background-color: lavenderblush;*/
  /*line-height: 20px;*/
  margin: 10% auto;
}
/deep/ .el-timeline-item__wrapper {
  height: 76px;
}
</style>